<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script charset="utf-8" type="text/javascript" th:src="@{/lib/jquery-3.5.1.min.js}"></script>
<div class="table-responsive">
    <table class="table table-striped table-sm" th:name="文件列表" th:border="1px">
        <thead>
        <tr>
            <th>记录ID</th>
            <th>用户工号</th>
            <th>上传文件名</th>
            <th>文件后缀名</th>
            <th>下载链接</th>
            <th>上传时间</th>
        </tr>
        </thead>
        <tbody>
            <tr th:each="file:${filePathList}">
                <td th:text="${file.id}"></td>
                <td th:text="${file.user_account}"></td>
                <td th:text="${file.file_name}"></td>
                <td th:text="${file.file_extension}"></td>
                <td>
                    <a th:href="@{${file.file_path}}" th:text="下载"></a>
                </td>
                <td th:text="${#dates.format(file.upload_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
            </tr>
        </tbody>
    </table>
</div>

</body>
</html>